from random import *
list =[0,0,0,0,0,0,0,0]
for i in range(8):
    input("请输入第{}中奖号码：".format(i+1))
    list[i]=i
luck=[0,0,0,0,0,0,0,0]
for j in range(8):
    luck[j]=randint(1,33)
    print("中奖号码是：",luck[j])
count=0
for n in range(8):
    for m in range(8):
        if list[n]==luck[m]:
            count=count+1
            break
        else:
            continue
print("你的号码中了{}个".format(count))
if count==8:
    print("一等奖")
elif count==7:
    print("二等奖")
elif count==6:
    print("三等奖")
elif count==5:
    print("四等奖")
else:
    print("谢谢惠顾！！！")